﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Resto.CostControl.Core
{
    /// <summary>
    /// 订单日期和品名大类实体类
    /// </summary>
    [Table("V_OrderDateAndCategory")]
    public class OrderDateAndCategory 
    {
        public string Id { get; set; }
        [Display(Name = "订单日期")]
        public DateTime Date { get; set; }

        [Display(Name = "品名大类")]
        public string Category { get; set; }

        public string CategoryName { get; set; }

        public string DateString { get { return Date.ToString("yyyy-MM-dd"); } }
    }
}
